package com.wskj.web.controller.workbench;


import com.wskj.common.core.controller.BaseController;
import com.wskj.common.core.domain.AjaxResult;
import com.wskj.workbench.service.ITbStatisticsService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 报表统计controller
 */
@Api(value = "报表统计", tags = {"报表统计"})
@AllArgsConstructor
@RestController
@RequestMapping("/workbench/statistics")
public class TbStatisticsController extends BaseController {

    private final ITbStatisticsService hcxStatisticsService;


    /**
     * @description: 首页信息统计
     * @author: kubilewang
     * @date: 2022/9/2 15:40
     * @param: 
     * @Return: AjaxResult<Map<String,Object>>
    **/
    @GetMapping("/home")
    public AjaxResult<Map<String, Object>> tongji() {
        return AjaxResult.success(hcxStatisticsService.tongji());
    }
}
